import request from "@/services/axios";
import { AnLongXianCommitApi } from "@/api/user_common";
/**
 * 接口API
 */
const Api = {
  /**
   * @returns {*}
   * @param params
   */
  getBindWorkerByTerminalId(params) {
    return request.get({
      url: "/irms/treatmentRoomDoctor/getBindWorkerByTerminalId",
      params
    });
  },
}
/**
 * 安达接口扩展类
 */
const ApiAnLongXianUtil = {
  /**
   * 获取医生信息
   * @param self
   * @param apiData
   * @returns {Promise<void>}
   */
  async customAndaRoomDoctor(self, apiData) {
    // 获取接口数据
    const formJson = {
      terminalId: self.deviceInfo.screenId,
    };
    const {code, data} = await AnLongXianCommitApi.getWorkerListByTerminal(formJson);
    return data || []
  }

};
export {ApiAnLongXianUtil};
